package com.wxzhou.wangzhuan.dto;

import java.math.BigDecimal;

/**
 * 广告预请求响应对象
 */
public class AdReportResponse {

    //本次广告收益，单位可能是元，也可能是金币，以实际客户端业务场景为准。
    private BigDecimal amount = BigDecimal.ZERO;

    //交互类型枚举，特定情况下有用，比如toast提示消息等、hb_dialog(红包领取弹窗)、dialog（普通弹窗）等。
    private String in_type;

    //消息文案，无特别说明的情况下，toast适用
    private String message;

    public AdReportResponse() {
    }


    private AdReportResponse(BigDecimal amount, String in_type) {
        this.amount = amount;
        this.in_type = in_type;
    }

    public static AdReportResponse createNone(BigDecimal amount) {
        return new AdReportResponse(amount, null);
    }

    public static AdReportResponse createToast(BigDecimal amount) {
        return new AdReportResponse(amount, "toast");
    }

    public static AdReportResponse createDialog(BigDecimal amount) {
        return new AdReportResponse(amount, "toast");
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getIn_type() {
        return in_type;
    }

    public void setIn_type(String in_type) {
        this.in_type = in_type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
